package com.zywl.service;

import com.zywl.core.beans.Resource;
import com.zywl.service.base.BaseService;

import java.util.List;

public interface ResourceService extends BaseService<Resource> {
    Integer getMaxOrderByPid(Long pId) throws Exception;

    List<Resource> getResources(String resType) throws Exception;

    List<Resource> getResourcesByRoleId(Long roleId, String resType) throws Exception;

    List<Resource> getResourcesMenuByPid(String pId) throws Exception;

    boolean permissionExist(String permission) throws Exception;

    List<Resource> getAllDataEnable(String order) throws Exception;

    List<Resource> getAllByAssId(Long assId) throws Exception;

    List<Resource> getAllByAssIdAndType(Long assId,String resType) throws Exception;

}
